#ifndef DIALOG_H
#define DIALOG_H

class ModalDialog
{
public:
	tEvent1<bool> eventEndDialog;

public:
	ModalDialog();
	~ModalDialog();

	virtual void DoModal(void * userData);
	virtual void EndDialog(bool _ok);

	void * GetUserData() { return mUserData; }

protected:
	MGUI_Layout * mLayout;

	void * mUserData;
};

#endif